package com.lzx.service.zlzs.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zlzs.DistributionMapper;
import com.lzx.mapper.zlzs.FertilizerMapper;
import com.lzx.model.zlzs.Distribution;
import com.lzx.model.zlzs.Fertilizer;
import com.lzx.service.zlzs.DistributionService;
import com.lzx.service.zlzs.FertilizerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("distributionService")
public class DistributionServiceImpl extends ServiceImpl<DistributionMapper,Distribution> implements DistributionService {
    @Autowired
    private DistributionMapper distributionMapper;



    @Override
    public List<Distribution> selectdemolist( ){
        try {
            return distributionMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Distribution selectdemobyid(String id){
        try {
            return distributionMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
